home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
lib
/
c
/
unixSyscall
/
RCS
/
mkdir.c,v
< prev
next >
Wrap
Text File
|
1991-12-10
|
2KB
|
93 lines
head 1.1;
branch ;
access ;
symbols sprited:1.1.1;
locks ; strict;
comment @ * @;
1.1
date 88.06.19.14.31.37; author ouster; state Exp;
branches 1.1.1.1;
next ;
1.1.1.1
date 91.12.10.15.52.38; author kupfer; state Exp;
branches ;
next ;
desc
@@
1.1
log
@Initial revision
@
text
@/*
* mkdir.c --
*
* Procedure to map from Unix mkdir system call to Sprite.
*
* Copyright (C) 1986 Regents of the University of California
* All rights reserved.
*/
#ifndef lint
static char rcsid[] = "$Header: open.c,v 1.3 86/04/17 21:58:32 andrew Exp $ SPRITE (Berkeley)";
#endif not lint
#include "sprite.h"
#include "fs.h"
#include "compatInt.h"
#include <sys/file.h>
/*
*----------------------------------------------------------------------
*
* mkdir --
*
* Procedure to map from Unix mkdir system call to Sprite Fs_MakeDir.
*
* Results:
* UNIX_ERROR is returned upon error, with the actual error code
* stored in errno. Otherwise UNIX_SUCCESS is returned.
*
* Side effects:
* None.
*
*----------------------------------------------------------------------
*/
int
mkdir(pathName, permissions)
char *pathName; /* The name of the directory to create */
int permissions; /* Permission mask to use on creation */
{
ReturnStatus status; /* result returned by Fs_Open */
status = Fs_MakeDir(pathName, permissions);
if (status != SUCCESS) {
errno = Compat_MapCode(status);
return(UNIX_ERROR);
} else {
return(UNIX_SUCCESS);
}
}
@
1.1.1.1
log
@Initial branch for Sprite server.
@
text
@d11 1
a11 1
static char rcsid[] = "$Header: /sprite/src/lib/c/unixSyscall/RCS/mkdir.c,v 1.1 88/06/19 14:31:37 ouster Exp $ SPRITE (Berkeley)";
@